:root {
    --primary: #1a365d;
    --accent: #2b6cb0;
    --gold: #d4af37;
    --text-light: #ffffff;
    --bg-dark: rgba(26, 54, 93, 0.95);
    --input-bg: rgba(0, 0, 0, 0.4);
    --input-border: rgba(212, 175, 55, 0.3);
    --spacing-unit: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #000;
    overflow-x: hidden;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1);
    transition: filter 10s ease-in-out;
}

.main-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: var(--spacing-unit);
    position: relative;
}

.brand-intro {
    text-align: center;
    margin-bottom: 2rem;
    z-index: 1;
    transition: all 0.5s ease;
}

.brand-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.brand-title {
    color: var(--gold);
    font-size: 2.5rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.brand-slogan {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.auth-card {
    background: rgba(13, 22, 36, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--input-border);
    border-radius: 15px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1;
    display: none;
    transition: all 0.5s ease;
}

.brand-header {
    text-align: center;
    margin-bottom: 2rem;
}

.header-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.header-title {
    color: var(--gold);
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    pointer-events: none;
}

.form-control {
    background: rgba(13, 22, 36, 0.7) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--text-light) !important;
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25) !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 0.75rem;
    padding: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: 100%;
    margin-top: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-link a {
    color: var(--gold);
    text-decoration: none;
    position: relative;
    font-weight: 500;
}

.auth-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.auth-link a:hover::after {
    width: 100%;
}

.login-btn {
    background: white;
    color: var(--gold);
    border: none;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 2rem;
    cursor: pointer;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.alert {
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.remember-me label {
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.9rem;
}

.modal-content {
    background: rgba(13, 22, 36, 0.85);
    border: 1px solid var(--input-border);
    border-radius: 15px;
}

.modal-header {
    border-bottom: 1px solid var(--input-border);
    padding: 1.25rem;
}

.modal-title {
    color: var(--gold);
    font-size: 1.25rem;
}

.custom-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23d4af37' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.password-loader {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    color: var(--gold);
}